package com.design.behavioral.chainOfResponsibility;

/**
 * 小组长
 */
public class GroupLeader extends LeaveHandler{

    public GroupLeader(){
        super(LeaveHandler.NUM_ONE, LeaveHandler.NUM_THREE);
    }

    @Override
    void handlerLeave(LeaveRequest leaveRequest) {
        System.out.println(leaveRequest.getName() + "请假"+ leaveRequest.getNum() + "天");
        System.out.println("小组长审批：同意。");
    }
}
